#include "Shape.h"

Rectangle::Rectangle(const Rectangle& r)
{
    w = r.w;
    h = r.h;
}

double Rectangle::getArea()
{
    return h * w;
}

Circle::Circle(const Circle& c)
{
    r = c.r;
}

double Circle::getArea()
{
    return 3.14 * r * r;
}